{% extends "base.html" %}
{% block content %}

          </ul>
          <ul class="nav navbar-nav navbar-right">
           <li><a href="/user_info/">{{user}}</a></li>
           <li><a href="/logout/">退出</a></li>
         </ul>
        </div><!--/.nav-collapse -->
      </div>
    </nav>

    <div class="container theme-showcase" role="main">

	  <div class="page-header">
        <div id="navbar" class="navbar-collapse collapse">
        </div><!--/.navbar-collapse -->
      </div>
	  {% for key1 in Orders_set %}
	  <div class="row">
        <div class="col-md-6">
          <table class="table table-striped">
            <thead>
              <tr>
                <th>编号</th>
				<th>商品名称</th>
				<th>商品价钱</th>
				<th>个数</th>
				<th>删除</th>
              </tr>
            </thead>
            <tbody>
              {% for key2,value in key1.items %}
			  {% for key in value %}
                <tr>
                  <td><a href="/view_goods/{{key.good_id}}/">{{ key.id }}</a></td>
                  <td>{{ key.name }}</td>
                  <td>￥{{ key.price }}</td>
				  <td>{{ key.count }}</td>
				  <td><a href="/delete_orders/{{key.id}}/1/">删除</a></td>
                </tr>
			{% endfor %}
			订单编号:{{key2.id}},创建时间：{{key2.create_time}},地址：{{key2.address}}<br>
			{% if not key2.status %}
				<input type="submit" value="支付">
			{% endif %}
			 <a href="/delete_orders/{{key2.id}}/2/">删除</a>
			 {% endfor %}
            </tbody>
          </table>
        </div>
		{% endfor %}

      </div>
{% endblock %}
